﻿<Window x:Class="LoghogInterface.Views.WindowInput"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Вход" 
        Height="250" 
        Width="300"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Width="280" Margin="5 0 0 0">
            <Label Content="Пользователь" />
            <TextBox Text="{Binding Login, UpdateSourceTrigger=PropertyChanged}" />
            
            <Label Content="Пароль" />
            <TextBox Text="{Binding Password, UpdateSourceTrigger=PropertyChanged}" />
            
            <Label Content="Журналы" />
            <ComboBox ItemsSource="{Binding Journals}" SelectedItem="{Binding SelectedJournal, UpdateSourceTrigger=PropertyChanged}" />
        </StackPanel>
        <StackPanel Orientation="Horizontal"
                    VerticalAlignment="Bottom" 
                    HorizontalAlignment="Right" 
                    Grid.Row="1"
                    Margin="0 0 5 5">
            <Button Content="Ok" Width="70" Command="{Binding Input}" Click="CloseDialog" />
            <Button Content="Отмена" Width="70" Click="CloseDialog" />
        </StackPanel>
        
    </Grid>
</Window>
